﻿#include "widget.h"

#include <QApplication>
#include <QHotkey>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Widget w;
    w.show();

    QHotkey hotkey(QKeySequence("Ctrl+Alt+T"), true);
    QObject::connect(&hotkey, &QHotkey::activated, []() {
        qDebug() << "Global hotkey activated!";
    });

    return a.exec();
}
